﻿using System.Web.Mvc;
using SportStore.Services;

namespace SportStore.Controllers
{
    public class HomeController : Controller
    {
        /// <summary>
        /// Gets or sets the product service.
        /// </summary>
        public IProductService ProductService { get; set; }

        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            var product = this.ProductService.GetProduct(1);

            return View();
        }
    }
}
